<template>
<keep-alive :include="cacheViews">
  <router-view></router-view>
</keep-alive>
</template>

<script>
  export default {
    name: 'common-router-view',
    computed: {
      cacheViews() {
        return this.$store.getters['RouterCache/cacheViews'];
      }
    }
  }
</script>